package com.woniuxy.entitys;

import lombok.Data;

import java.io.Serializable;

/**
 * tb_user
 * @author 
 */
@Data
public class TbUser implements Serializable {
    private Integer uid;

    private String phone;

    private String upwd;

    private String beiyong1;

    private String beiyong2;



    private static final long serialVersionUID = 1L;


    public void setUpwd(String upwd) {
        this.upwd = upwd;
    }

    public String getBeiyong1() {
        return beiyong1;
    }

    public void setBeiyong1(String beiyong1) {
        this.beiyong1 = beiyong1;
    }

    public String getBeiyong2() {
        return beiyong2;
    }

    public void setBeiyong2(String beiyong2) {
        this.beiyong2 = beiyong2;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        TbUser other = (TbUser) that;
        return (this.getUid() == null ? other.getUid() == null : this.getUid().equals(other.getUid()))
            && (this.getPhone() == null ? other.getPhone() == null : this.getPhone().equals(other.getPhone()))
            && (this.getUpwd() == null ? other.getUpwd() == null : this.getUpwd().equals(other.getUpwd()))
            && (this.getBeiyong1() == null ? other.getBeiyong1() == null : this.getBeiyong1().equals(other.getBeiyong1()))
            && (this.getBeiyong2() == null ? other.getBeiyong2() == null : this.getBeiyong2().equals(other.getBeiyong2()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getUid() == null) ? 0 : getUid().hashCode());
        result = prime * result + ((getPhone() == null) ? 0 : getPhone().hashCode());
        result = prime * result + ((getUpwd() == null) ? 0 : getUpwd().hashCode());
        result = prime * result + ((getBeiyong1() == null) ? 0 : getBeiyong1().hashCode());
        result = prime * result + ((getBeiyong2() == null) ? 0 : getBeiyong2().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", uid=").append(uid);
        sb.append(", phone=").append(phone);
        sb.append(", upwd=").append(upwd);
        sb.append(", beiyong1=").append(beiyong1);
        sb.append(", beiyong2=").append(beiyong2);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }


}